<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>OrbbecSDK: header_cn/libobsensor/h/Frame.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="orbbec_icon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OrbbecSDK
   &#160;<span id="projectnumber">1.8.3</span>
   </div>
   <div id="projectbrief">OrbbecSDK: 奥比中光 3D 相机开发套件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_9a5345e98321307492e41331ab8e5636.html">header_cn</a></li><li class="navelem"><a class="el" href="dir_a57403e30bad3723557b0550251f8216.html">libobsensor</a></li><li class="navelem"><a class="el" href="dir_afa7ddcbc480a7aa37c5239e71e2d522.html">h</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Frame.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="Frame_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ObTypes_8h.html">ObTypes.h</a>&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;uint64_t <a class="code" href="Frame_8h.html#a5009d0e21fffddc2bb891357ccd611f7">ob_frame_index</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<a class="code" href="ObTypes_8h.html#a2dd00351b3c3e24fba7b2e9d1bb033a8">ob_format</a> <a class="code" href="Frame_8h.html#ac46511e8d0e4d5b962d2b9710d313bdc">ob_frame_format</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<a class="code" href="ObTypes_8h.html#ad2256fb566c96c9a50ab5120012a1ed1">ob_frame_type</a> <a class="code" href="Frame_8h.html#adfa38aa0cc594622f1d00540cf108b5a">ob_frame_get_type</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;uint64_t <a class="code" href="Frame_8h.html#a95b2242495cad6f1d1d7db82cc516a2e">ob_frame_time_stamp</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;uint64_t <a class="code" href="Frame_8h.html#aacf461e938d508f05b7b1ba8324cfcf5">ob_frame_time_stamp_us</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;uint64_t <a class="code" href="Frame_8h.html#adce8d3f7031629a3e3d7b25911b33886">ob_frame_system_time_stamp</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="keywordtype">void</span> *<a class="code" href="Frame_8h.html#ada0d3dca9c8d020451e8a1bb11dacf57">ob_frame_data</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;uint32_t <a class="code" href="Frame_8h.html#ab9350186e6d286d74466d07287871ce9">ob_frame_data_size</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;uint32_t <a class="code" href="Frame_8h.html#a0105450d37ecd43b0e27c90e396231eb">ob_video_frame_width</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;uint32_t <a class="code" href="Frame_8h.html#a4c31d615158ad377dab30a5886788a11">ob_video_frame_height</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="keywordtype">void</span> *<a class="code" href="Frame_8h.html#ad6c4784af761b12ad13367594af78b58">ob_video_frame_metadata</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;uint32_t <a class="code" href="Frame_8h.html#ac9096648e25cfa045fb0ab6b3b3c93c0">ob_video_frame_metadata_size</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;uint8_t <a class="code" href="Frame_8h.html#a4a7f7edea6d5963c2bbd2360edc3a489">ob_video_frame_pixel_available_bit_size</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<a class="code" href="ObTypes_8h.html#a01cba50d4d558e4c2035f09b698bb10b">ob_sensor_type</a> <a class="code" href="Frame_8h.html#ac69985299cbe7ca46cdddab955d26a33">ob_ir_frame_get_source_sensor_type</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **<a class="code" href="structob__error.html">ob_error</a>);</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="keywordtype">float</span> <a class="code" href="Frame_8h.html#a84d908c9407ef8f96086c6d0911122e0">ob_depth_frame_get_value_scale</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="keywordtype">float</span> <a class="code" href="Frame_8h.html#a42e33dafc2a310292a84bc4e59b624b3">ob_points_frame_get_position_value_scale</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="keywordtype">void</span> <a class="code" href="Frame_8h.html#a572bd900dfe085bd8618e53b2670f069">ob_delete_frame</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;uint32_t <a class="code" href="Frame_8h.html#a48ab6c2f559f3af05f4147a5f2abb324">ob_frameset_frame_count</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frameset, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *<a class="code" href="Frame_8h.html#a5fd791167ae8728c8796746cddfb98f9">ob_frameset_depth_frame</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frameset, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *<a class="code" href="Frame_8h.html#aea3b7d87129161528aeecf9cb06c0321">ob_frameset_color_frame</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frameset, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *<a class="code" href="Frame_8h.html#a6e1afbac80830e8f9497e6fda23d5ca1">ob_frameset_ir_frame</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frameset, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *<a class="code" href="Frame_8h.html#aaee352704126aa113327a3105f5ed3af">ob_frameset_points_frame</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frameset, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *<a class="code" href="Frame_8h.html#a30f3200115ea77315b7bb8ace3087207">ob_frameset_get_frame</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frameset, <a class="code" href="ObTypes_8h.html#ad2256fb566c96c9a50ab5120012a1ed1">ob_frame_type</a> frame_type, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<a class="code" href="structOBAccelValue.html">ob_accel_value</a> <a class="code" href="Frame_8h.html#abebc05a57d9906ff7b05e5e3edbe0537">ob_accel_frame_value</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="keywordtype">float</span> <a class="code" href="Frame_8h.html#aaed95a72b4e138b7f25f1abc90f762c4">ob_accel_frame_temperature</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;<a class="code" href="structOBAccelValue.html">ob_gyro_value</a> <a class="code" href="Frame_8h.html#a491583ded6975af8cb3948a6ec372529">ob_gyro_frame_value</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<span class="keywordtype">float</span> <a class="code" href="Frame_8h.html#a46144bd2d6c7d57b85f8b1f95d1be336">ob_gyro_frame_temperature</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;<span class="keywordtype">void</span> <a class="code" href="Frame_8h.html#af136546f3099cfde42407c2ab91b5f2a">ob_frame_add_ref</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *<a class="code" href="Frame_8h.html#a5a144bc4b6e9ba63d60eccba1c31b8c1">ob_create_frame</a>(<a class="code" href="ObTypes_8h.html#a2dd00351b3c3e24fba7b2e9d1bb033a8">ob_format</a> frame_format, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height, <span class="keywordtype">int</span> stride_bytes, <a class="code" href="ObTypes_8h.html#ad2256fb566c96c9a50ab5120012a1ed1">ob_frame_type</a> frame_type, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *<a class="code" href="Frame_8h.html#a5e49f68c6b77a2e80615e229cd3ae473">ob_create_frame_from_buffer</a>(<a class="code" href="ObTypes_8h.html#a2dd00351b3c3e24fba7b2e9d1bb033a8">ob_format</a> frame_format, uint32_t frame_width, uint32_t frame_height, uint8_t *buffer, uint32_t buffer_size,</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;                                      <a class="code" href="ObTypes_8h.html#a3ba48a3ae08f73fc4c6beac4464dde1d">ob_frame_destroy_callback</a> *buffer_destroy_cb, <span class="keywordtype">void</span> *buffer_destroy_context, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *<a class="code" href="Frame_8h.html#a91bc0d41b1bbe8885853e5b0346034d9">ob_create_frameset</a>(<a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;<span class="keywordtype">void</span> <a class="code" href="Frame_8h.html#a379ea3f58725a133c0d98efa99cfece2">ob_frameset_push_frame</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frameset, <a class="code" href="ObTypes_8h.html#ad2256fb566c96c9a50ab5120012a1ed1">ob_frame_type</a> type, <a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;<span class="keywordtype">void</span> <a class="code" href="Frame_8h.html#a35186cca3c0a561acb281b03c8ea6013">ob_frame_set_system_time_stamp</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, uint64_t system_timestamp, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;<span class="keywordtype">void</span> <a class="code" href="Frame_8h.html#a9f4b11364d2a74f80e9c6252b94e97bd">ob_frame_set_device_time_stamp</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, uint64_t device_timestamp, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;<span class="keywordtype">void</span> <a class="code" href="Frame_8h.html#a5ce57b8b10a7dddf118ccd9663f7dd06">ob_frame_set_device_time_stamp_us</a>(<a class="code" href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a> *frame, uint64_t device_timestamp_us, <a class="code" href="structob__error.html">ob_error</a> **error);</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;}</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="Frame_8h_html_a379ea3f58725a133c0d98efa99cfece2"><div class="ttname"><a href="Frame_8h.html#a379ea3f58725a133c0d98efa99cfece2">ob_frameset_push_frame</a></div><div class="ttdeci">void ob_frameset_push_frame(ob_frame *frameset, ob_frame_type type, ob_frame *frame, ob_error **error)</div><div class="ttdoc">将指定类型的数据帧添加到数据帧集。 </div></div>
<div class="ttc" id="Frame_8h_html_abebc05a57d9906ff7b05e5e3edbe0537"><div class="ttname"><a href="Frame_8h.html#abebc05a57d9906ff7b05e5e3edbe0537">ob_accel_frame_value</a></div><div class="ttdeci">ob_accel_value ob_accel_frame_value(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取加速度计帧数据。 </div></div>
<div class="ttc" id="Frame_8h_html_a4a7f7edea6d5963c2bbd2360edc3a489"><div class="ttname"><a href="Frame_8h.html#a4a7f7edea6d5963c2bbd2360edc3a489">ob_video_frame_pixel_available_bit_size</a></div><div class="ttdeci">uint8_t ob_video_frame_pixel_available_bit_size(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取像素有效位数（如 Y16 格式帧，每个像素占 16bit，但实际只有低 10 位是有效位，高 6 位填充 0） ...</div></div>
<div class="ttc" id="Frame_8h_html_a491583ded6975af8cb3948a6ec372529"><div class="ttname"><a href="Frame_8h.html#a491583ded6975af8cb3948a6ec372529">ob_gyro_frame_value</a></div><div class="ttdeci">ob_gyro_value ob_gyro_frame_value(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取陀螺仪帧数据。 </div></div>
<div class="ttc" id="Frame_8h_html_a48ab6c2f559f3af05f4147a5f2abb324"><div class="ttname"><a href="Frame_8h.html#a48ab6c2f559f3af05f4147a5f2abb324">ob_frameset_frame_count</a></div><div class="ttdeci">uint32_t ob_frameset_frame_count(ob_frame *frameset, ob_error **error)</div><div class="ttdoc">获取数据帧集中包含的帧数 </div></div>
<div class="ttc" id="ObTypes_8h_html_a3ba48a3ae08f73fc4c6beac4464dde1d"><div class="ttname"><a href="ObTypes_8h.html#a3ba48a3ae08f73fc4c6beac4464dde1d">ob_frame_destroy_callback</a></div><div class="ttdeci">void( ob_frame_destroy_callback)(void *buffer, void *user_data)</div><div class="ttdoc">自定义删除回调，当引用计数为 0 时主动调用 </div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l01253">ObTypes.h:1253</a></div></div>
<div class="ttc" id="ObTypes_8h_html_a01cba50d4d558e4c2035f09b698bb10b"><div class="ttname"><a href="ObTypes_8h.html#a01cba50d4d558e4c2035f09b698bb10b">ob_sensor_type</a></div><div class="ttdeci">enum OBSensorType ob_sensor_type</div></div>
<div class="ttc" id="Frame_8h_html_a84d908c9407ef8f96086c6d0911122e0"><div class="ttname"><a href="Frame_8h.html#a84d908c9407ef8f96086c6d0911122e0">ob_depth_frame_get_value_scale</a></div><div class="ttdeci">float ob_depth_frame_get_value_scale(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取深度帧的值的深度单位，深度像素值乘以深度单位后，可以得到单位为毫米的深度值； 如 valueScale=0...</div></div>
<div class="ttc" id="Frame_8h_html_ab9350186e6d286d74466d07287871ce9"><div class="ttname"><a href="Frame_8h.html#ab9350186e6d286d74466d07287871ce9">ob_frame_data_size</a></div><div class="ttdeci">uint32_t ob_frame_data_size(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取帧数据大小 </div></div>
<div class="ttc" id="Frame_8h_html_adfa38aa0cc594622f1d00540cf108b5a"><div class="ttname"><a href="Frame_8h.html#adfa38aa0cc594622f1d00540cf108b5a">ob_frame_get_type</a></div><div class="ttdeci">ob_frame_type ob_frame_get_type(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取帧类型 </div></div>
<div class="ttc" id="Frame_8h_html_ac46511e8d0e4d5b962d2b9710d313bdc"><div class="ttname"><a href="Frame_8h.html#ac46511e8d0e4d5b962d2b9710d313bdc">ob_frame_format</a></div><div class="ttdeci">ob_format ob_frame_format(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取帧格式 </div></div>
<div class="ttc" id="Frame_8h_html_aacf461e938d508f05b7b1ba8324cfcf5"><div class="ttname"><a href="Frame_8h.html#aacf461e938d508f05b7b1ba8324cfcf5">ob_frame_time_stamp_us</a></div><div class="ttdeci">uint64_t ob_frame_time_stamp_us(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取帧的硬件时间戳（以微秒为单位）。 </div></div>
<div class="ttc" id="Frame_8h_html_a95b2242495cad6f1d1d7db82cc516a2e"><div class="ttname"><a href="Frame_8h.html#a95b2242495cad6f1d1d7db82cc516a2e">ob_frame_time_stamp</a></div><div class="ttdeci">uint64_t ob_frame_time_stamp(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取帧的硬件时间戳（以毫秒为单位）。 </div></div>
<div class="ttc" id="ObTypes_8h_html"><div class="ttname"><a href="ObTypes_8h.html">ObTypes.h</a></div><div class="ttdoc">提供 SDK 中常用的结构体，枚举常量定义。 </div></div>
<div class="ttc" id="structOBAccelValue_html"><div class="ttname"><a href="structOBAccelValue.html">OBAccelValue</a></div><div class="ttdoc">加速度计和陀螺仪的数据结构体 </div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l00497">ObTypes.h:497</a></div></div>
<div class="ttc" id="Frame_8h_html_a0105450d37ecd43b0e27c90e396231eb"><div class="ttname"><a href="Frame_8h.html#a0105450d37ecd43b0e27c90e396231eb">ob_video_frame_width</a></div><div class="ttdeci">uint32_t ob_video_frame_width(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取视频帧宽 </div></div>
<div class="ttc" id="ObTypes_8h_html_ad2256fb566c96c9a50ab5120012a1ed1"><div class="ttname"><a href="ObTypes_8h.html#ad2256fb566c96c9a50ab5120012a1ed1">ob_frame_type</a></div><div class="ttdeci">enum OBFrameType ob_frame_type</div></div>
<div class="ttc" id="Frame_8h_html_aaee352704126aa113327a3105f5ed3af"><div class="ttname"><a href="Frame_8h.html#aaee352704126aa113327a3105f5ed3af">ob_frameset_points_frame</a></div><div class="ttdeci">ob_frame * ob_frameset_points_frame(ob_frame *frameset, ob_error **error)</div><div class="ttdoc">从数据帧集中获取点云数据。 </div></div>
<div class="ttc" id="Frame_8h_html_adce8d3f7031629a3e3d7b25911b33886"><div class="ttname"><a href="Frame_8h.html#adce8d3f7031629a3e3d7b25911b33886">ob_frame_system_time_stamp</a></div><div class="ttdeci">uint64_t ob_frame_system_time_stamp(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取帧的系统时间戳（以毫秒为单位）。 </div></div>
<div class="ttc" id="Frame_8h_html_a5fd791167ae8728c8796746cddfb98f9"><div class="ttname"><a href="Frame_8h.html#a5fd791167ae8728c8796746cddfb98f9">ob_frameset_depth_frame</a></div><div class="ttdeci">ob_frame * ob_frameset_depth_frame(ob_frame *frameset, ob_error **error)</div><div class="ttdoc">从数据帧集中获取深度数据帧。 </div></div>
<div class="ttc" id="Frame_8h_html_a46144bd2d6c7d57b85f8b1f95d1be336"><div class="ttname"><a href="Frame_8h.html#a46144bd2d6c7d57b85f8b1f95d1be336">ob_gyro_frame_temperature</a></div><div class="ttdeci">float ob_gyro_frame_temperature(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取陀螺仪帧采样时温度 </div></div>
<div class="ttc" id="Frame_8h_html_a5ce57b8b10a7dddf118ccd9663f7dd06"><div class="ttname"><a href="Frame_8h.html#a5ce57b8b10a7dddf118ccd9663f7dd06">ob_frame_set_device_time_stamp_us</a></div><div class="ttdeci">void ob_frame_set_device_time_stamp_us(ob_frame *frame, uint64_t device_timestamp_us, ob_error **error)</div><div class="ttdoc">设置帧的设备时间戳 </div></div>
<div class="ttc" id="Frame_8h_html_a42e33dafc2a310292a84bc4e59b624b3"><div class="ttname"><a href="Frame_8h.html#a42e33dafc2a310292a84bc4e59b624b3">ob_points_frame_get_position_value_scale</a></div><div class="ttdeci">float ob_points_frame_get_position_value_scale(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取点云帧的点坐标值缩放系数，点坐标值乘以缩放系数后，可以得到单位为毫米的坐标值； 如 scale=0...</div></div>
<div class="ttc" id="Frame_8h_html_a6e1afbac80830e8f9497e6fda23d5ca1"><div class="ttname"><a href="Frame_8h.html#a6e1afbac80830e8f9497e6fda23d5ca1">ob_frameset_ir_frame</a></div><div class="ttdeci">ob_frame * ob_frameset_ir_frame(ob_frame *frameset, ob_error **error)</div><div class="ttdoc">从数据帧中获取红外帧。 </div></div>
<div class="ttc" id="Frame_8h_html_a5e49f68c6b77a2e80615e229cd3ae473"><div class="ttname"><a href="Frame_8h.html#a5e49f68c6b77a2e80615e229cd3ae473">ob_create_frame_from_buffer</a></div><div class="ttdeci">ob_frame * ob_create_frame_from_buffer(ob_format frame_format, uint32_t frame_width, uint32_t frame_height, uint8_t *buffer, uint32_t buffer_size, ob_frame_destroy_callback *buffer_destroy_cb, void *buffer_destroy_context, ob_error **error)</div><div class="ttdoc">基于外部创建的缓冲区创建帧对象。 </div></div>
<div class="ttc" id="Frame_8h_html_a5009d0e21fffddc2bb891357ccd611f7"><div class="ttname"><a href="Frame_8h.html#a5009d0e21fffddc2bb891357ccd611f7">ob_frame_index</a></div><div class="ttdeci">uint64_t ob_frame_index(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取帧索引 </div></div>
<div class="ttc" id="Frame_8h_html_ac69985299cbe7ca46cdddab955d26a33"><div class="ttname"><a href="Frame_8h.html#ac69985299cbe7ca46cdddab955d26a33">ob_ir_frame_get_source_sensor_type</a></div><div class="ttdeci">ob_sensor_type ob_ir_frame_get_source_sensor_type(ob_frame *frame, ob_error **ob_error)</div><div class="ttdoc">获取红外数据帧的源传感器类型（双摄像头为左或右） </div></div>
<div class="ttc" id="Frame_8h_html_a5a144bc4b6e9ba63d60eccba1c31b8c1"><div class="ttname"><a href="Frame_8h.html#a5a144bc4b6e9ba63d60eccba1c31b8c1">ob_create_frame</a></div><div class="ttdeci">ob_frame * ob_create_frame(ob_format frame_format, int width, int height, int stride_bytes, ob_frame_type frame_type, ob_error **error)</div><div class="ttdoc">根据指定的参数创建一个空数据帧对象。 </div></div>
<div class="ttc" id="Frame_8h_html_ada0d3dca9c8d020451e8a1bb11dacf57"><div class="ttname"><a href="Frame_8h.html#ada0d3dca9c8d020451e8a1bb11dacf57">ob_frame_data</a></div><div class="ttdeci">void * ob_frame_data(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取帧数据 </div></div>
<div class="ttc" id="ObTypes_8h_html_a2d32dd7fcbb88ebb408e9f9081e6f896"><div class="ttname"><a href="ObTypes_8h.html#a2d32dd7fcbb88ebb408e9f9081e6f896">ob_frame</a></div><div class="ttdeci">struct CFrameImpl ob_frame</div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l00060">ObTypes.h:60</a></div></div>
<div class="ttc" id="Frame_8h_html_aea3b7d87129161528aeecf9cb06c0321"><div class="ttname"><a href="Frame_8h.html#aea3b7d87129161528aeecf9cb06c0321">ob_frameset_color_frame</a></div><div class="ttdeci">ob_frame * ob_frameset_color_frame(ob_frame *frameset, ob_error **error)</div><div class="ttdoc">从帧集合中获取彩色帧 </div></div>
<div class="ttc" id="ObTypes_8h_html_a2dd00351b3c3e24fba7b2e9d1bb033a8"><div class="ttname"><a href="ObTypes_8h.html#a2dd00351b3c3e24fba7b2e9d1bb033a8">ob_format</a></div><div class="ttdeci">enum OBFormat ob_format</div></div>
<div class="ttc" id="Frame_8h_html_a91bc0d41b1bbe8885853e5b0346034d9"><div class="ttname"><a href="Frame_8h.html#a91bc0d41b1bbe8885853e5b0346034d9">ob_create_frameset</a></div><div class="ttdeci">ob_frame * ob_create_frameset(ob_error **error)</div><div class="ttdoc">创建一个空的数据帧集对象。 </div></div>
<div class="ttc" id="Frame_8h_html_a30f3200115ea77315b7bb8ace3087207"><div class="ttname"><a href="Frame_8h.html#a30f3200115ea77315b7bb8ace3087207">ob_frameset_get_frame</a></div><div class="ttdeci">ob_frame * ob_frameset_get_frame(ob_frame *frameset, ob_frame_type frame_type, ob_error **error)</div><div class="ttdoc">从数据帧集中获取特定类型的数据帧。 </div></div>
<div class="ttc" id="Frame_8h_html_a9f4b11364d2a74f80e9c6252b94e97bd"><div class="ttname"><a href="Frame_8h.html#a9f4b11364d2a74f80e9c6252b94e97bd">ob_frame_set_device_time_stamp</a></div><div class="ttdeci">void ob_frame_set_device_time_stamp(ob_frame *frame, uint64_t device_timestamp, ob_error **error)</div><div class="ttdoc">设置帧的设备时间戳 </div></div>
<div class="ttc" id="Frame_8h_html_aaed95a72b4e138b7f25f1abc90f762c4"><div class="ttname"><a href="Frame_8h.html#aaed95a72b4e138b7f25f1abc90f762c4">ob_accel_frame_temperature</a></div><div class="ttdeci">float ob_accel_frame_temperature(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取加速度帧采样时温度 </div></div>
<div class="ttc" id="Frame_8h_html_af136546f3099cfde42407c2ab91b5f2a"><div class="ttname"><a href="Frame_8h.html#af136546f3099cfde42407c2ab91b5f2a">ob_frame_add_ref</a></div><div class="ttdeci">void ob_frame_add_ref(ob_frame *frame, ob_error **error)</div><div class="ttdoc">增加帧对象的引用计数。 </div></div>
<div class="ttc" id="Frame_8h_html_a4c31d615158ad377dab30a5886788a11"><div class="ttname"><a href="Frame_8h.html#a4c31d615158ad377dab30a5886788a11">ob_video_frame_height</a></div><div class="ttdeci">uint32_t ob_video_frame_height(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取视频帧高 </div></div>
<div class="ttc" id="Frame_8h_html_a572bd900dfe085bd8618e53b2670f069"><div class="ttname"><a href="Frame_8h.html#a572bd900dfe085bd8618e53b2670f069">ob_delete_frame</a></div><div class="ttdeci">void ob_delete_frame(ob_frame *frame, ob_error **error)</div><div class="ttdoc">删除数据帧对象 </div></div>
<div class="ttc" id="Frame_8h_html_a35186cca3c0a561acb281b03c8ea6013"><div class="ttname"><a href="Frame_8h.html#a35186cca3c0a561acb281b03c8ea6013">ob_frame_set_system_time_stamp</a></div><div class="ttdeci">void ob_frame_set_system_time_stamp(ob_frame *frame, uint64_t system_timestamp, ob_error **error)</div><div class="ttdoc">设置帧的系统时间戳 </div></div>
<div class="ttc" id="Frame_8h_html_ac9096648e25cfa045fb0ab6b3b3c93c0"><div class="ttname"><a href="Frame_8h.html#ac9096648e25cfa045fb0ab6b3b3c93c0">ob_video_frame_metadata_size</a></div><div class="ttdeci">uint32_t ob_video_frame_metadata_size(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取帧的元数据大小 </div></div>
<div class="ttc" id="structob__error_html"><div class="ttname"><a href="structob__error.html">ob_error</a></div><div class="ttdoc">SDK 暴露的错误类，用户可以根据该错误类，获取详细的错误信息 </div><div class="ttdef"><b>Definition:</b> <a href="ObTypes_8h_source.html#l00139">ObTypes.h:139</a></div></div>
<div class="ttc" id="Frame_8h_html_ad6c4784af761b12ad13367594af78b58"><div class="ttname"><a href="Frame_8h.html#ad6c4784af761b12ad13367594af78b58">ob_video_frame_metadata</a></div><div class="ttdeci">void * ob_video_frame_metadata(ob_frame *frame, ob_error **error)</div><div class="ttdoc">获取帧的元数据 </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2023年 十一月 24日 星期五 10:56:17 , 为 OrbbecSDK使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
